package com.ph.irp.base.assistantmaterial.dao;
import java.util.List;
import com.ph.irp.model.PBaseAssistantmaterialDeliveryaddress;
/**
 * 交货地点增，删，改，查（精确，模糊）判断是否有相同编号
 * @author Administrator
 *
 */
public interface PBaseAssistantmaterialDeliveryaddressDao {

	public void addDeliveryaddress(PBaseAssistantmaterialDeliveryaddress deliveryAddress)throws Throwable;
	
	public void deleteDeliveryaddress(int deliveryAddressId)throws Throwable;
	
	public void updateDeliveryaddress(PBaseAssistantmaterialDeliveryaddress deliveryAddress)throws Throwable;
	
	public PBaseAssistantmaterialDeliveryaddress getDeliveryaddressById(int deliveryAddressId)throws Throwable;
	
	@SuppressWarnings("unchecked")
	public List getDeliveryaddressByName(String name)throws Throwable;
	
	@SuppressWarnings("unchecked")
	public List getDeliveryaddressByCode(String code)throws Throwable;
	@SuppressWarnings("unchecked")
	public List getDeliveryaddressByCodeAndName(String name,String code)throws Throwable;
	
	public List<PBaseAssistantmaterialDeliveryaddress> getDeliveryaddressList()throws Throwable;
	
	public boolean isSame(String deliveryAddressCode)throws Throwable;
}
